@include("system::admin.layouts._header")
<body>

<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form" method="post">

		<div class="layui-form-item">
			<label class="layui-form-label">标题</label>
			<div class="layui-input-block">
				<input type="text" name="title" class="layui-input" placeholder="请输入标题" value="{{$data->title}}">
				<tip>填写标题。</tip>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">作者</label>
			<div class="layui-input-block">
				<input type="text" name="author" class="layui-input" placeholder="请输入作者" value="{{$data->author}}">
				<tip>填写作者。</tip>
			</div>
		</div>

        <div class="layui-form-item">
            <label class="layui-form-label">缩略图</label>
            <div class="layui-input-block layuimini-upload">
                <input name="thumb" class="layui-input layui-col-xs6" placeholder="请上传缩略图" value="{{$data->thumb}}">
                <div class="layuimini-upload-btn">
                            <span><a class="layui-btn" data-upload="thumb" data-upload-number="one"
                                     data-upload-exts="ico|png|jpg|jpeg"><i class="fa fa-upload"></i> 上传</a></span>
                </div>
            </div>
        </div>

		<div class="layui-form-item">
			<label class="layui-form-label">摘要</label>
			<div class="layui-input-block">
                <textarea name="digest" class="layui-textarea" placeholder="请输入摘要">{{$data->digest}}</textarea>
				<tip>填写摘要。</tip>
			</div>
		</div>

        <div class="layui-form-item">
            <label class="layui-form-label">内容</label>
            <div class="layui-input-block">
                <textarea name="content" id="content" class="editor" placeholder="请输入内容">{{$data->content}}</textarea>
                <tip>填写内容。</tip>
            </div>
        </div>

		<div class="layui-form-item">
			<label class="layui-form-label">原文地址</label>
			<div class="layui-input-block">
				<input type="text" name="content_source_url" class="layui-input" placeholder="请输入原文地址" value="{{$data->content_source_url}}">
				<tip>填写原文地址。</tip>
			</div>
		</div>



        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
</body>
</html>
